import { xpinRequest } from '@/request';

// 视频文案提取list
export const videoExtractLogList = (payload) => {
  return xpinRequest({
    url: '/xpin/api/tools/video_extract_log_list',
    payload,
  });
};
// 视频文案提取
export const videoDialogExtract = (payload) => {
  return xpinRequest({
    codeIgnore: true,
    method: 'POST',
    url: '/xpin/api/tools/video_dialog_extract',
    payload,
  });
};
// 取消视频文案提取
export const cancelVideoExtract = (payload) => {
  return xpinRequest({
    method: 'POST',
    url: '/xpin/api/tools/cancel_video_extract',
    payload,
  });
};
// 视频文案提取记录已读
export const videoReadLog = (payload) => {
  return xpinRequest({
    url: '/xpin/api/tools/video_read_log',
    payload,
  });
};
// 视频文案提取详情
export const videoExtractLogInfo = (payload) => {
  return xpinRequest({
    url: '/xpin/api/tools/video_extract_log_info',
    payload,
  });
};
// 视频文案提取详情
export const updateDialog = (payload) => {
  return xpinRequest({
    method: 'POST',
    url: '/xpin/api/tools/update_dialog',
    payload,
  });
};
// 用户今日剩余提取次数
export const videoExtractNum = (payload) => {
  return xpinRequest({
    url: '/xpin/api/tools/extract_num',
    payload,
  });
};
